jquery onclick function

58

jquery click function -

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});

jquery onclick function -

$( "#other" ).click(function() {
  $( "#target" ).click();
});

on click jquery -

$( "#dataTable tbody tr" ).on( "click", function() {
  console.log( $( this ).text() );
});

Comments

Submit
0 Comments